package com.msb.sentinelOpenfeign.controller;

import com.msb.common.JsonResult;
import com.msb.sentinelOpenfeign.openfeign.SentinelOpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/****************************************************
 * Sentinel 整合 OpenFeign
 *
 * @author lbf
 * @date 2025/6/27 16:32
 ****************************************************/
@RestController
public class SentinelOpenFeignController {

    @Autowired
    private SentinelOpenFeignService sentinelOpenFeignService;

    @GetMapping("/info/{id}")
    public JsonResult<String> getInfo(@PathVariable("id") Long id){
        return sentinelOpenFeignService.msbSql(id);
    }
}
